package com.schoolCommunity.service;

import com.schoolCommunity.entity.ForIndex;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolCommunity.entity.Information;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author YTH
 * @since 2020-10-08
 */
public interface ForIndexService extends IService<ForIndex> {

    //添加介绍
    public Information InsertForIndex(ForIndex forIndex) throws IOException;

    //上传一张图片
    public Information UploadPlacePicture(MultipartFile file, long forIndexId) throws IOException;

    //删除介绍
    public Information DeleteForIndex(long id) throws IOException;

    //修改介绍
    public Information UpdateForIndex(ForIndex forIndex) throws IOException;

    //获取所有介绍
    public Information GetAllForIndex();

    //点赞某条介绍
    public Information AddLovesForIndex(long id, long memberId);


}
